let a = [1,2,3]
let b = ["A","B","C"]
let arr = []
for (let i = 0; i < a.length; i++) {
    let obj = {}
    obj["value"] = a[i]
    obj["key"] = b[i]
    arr.push(obj)
}
console.log(arr);
